//
//  ItemFirstZaoCell.m
//  Lovelife
//
//  Created by apple on 15/4/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ItemFirstZaoCell.h"
#import "NightManager.h"

@implementation ItemFirstZaoCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.Img = [[UIImageView alloc]init];
        
        [self.contentView addSubview:self.Img];
        
        
        
        [_Img release];
        
        self.title = [[BaseLabel alloc]init];
        
        [self.contentView addSubview:self.title];
        
        self.title.textColor = [UIColor whiteColor];
        
        [_title release];
        
        self.zaocanLB = [[BaseLabel alloc]init];
        
        [self.contentView addSubview:self.zaocanLB];
        
        [_zaocanLB release];
        
        self.zaocanLB.textColor = [UIColor greenColor];
    }
    return self
    ;


}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.Img.frame = CGRectMake(5, 30, self.frame.size.width-10, self.frame.size.height);
    
    self.title.frame = CGRectMake(5, self.frame.size.height, self.frame.size.width-20, 30);
    
    self.zaocanLB.frame = CGRectMake(5, 0, self.frame.size.width-10, 30);

}

-(void)setLightDayModel
{
    [NightManager setLabelColorWithLabel:self.title];
    
    [NightManager setLabelColorWithLabel:self.zaocanLB];
    
    [NightManager setBackgroundColorWithView:self];

}

-(void)setNightDayModel
{

    [NightManager setLabelColorWithLabel:self.title];
    
    [NightManager setLabelColorWithLabel:self.zaocanLB];
    
    [NightManager setBackgroundColorWithView:self];

}
    @end
